package net.rlair.sbdemo.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 切面类2.
 *
 * @author ybr
 * @version 1.0.0.0
 */
@Aspect
@Component
@Order(2)
public class Yangbairong2 {
	
	@Pointcut("execution(* net.rlair.sbdemo.controller.ZhaozichenController.list(..))")
	public void pointCut() {
	}

	@After("pointCut()")
	public void afterReturning() {
		System.out.println("Aspect2 afterReturning ......");
	}

	@After("pointCut()")
	public void around() {
		System.out.println("Aspect2 around ......");
	}
}
